// 注意：vuex 的状态管理在页面刷新后会丢失
const getters = {
  // 侧边栏用到的state，注意每个都用namespaced参数，这样就方便打包
  // app
  // barSide: (state) => state.app.barSide,
  // size: (state) => state.app.size,
  // device: (state) => state.app.device,
  flagNetConnected: (state) => state.sys_app.flagNetConnected,
  flagConsoleLog: (state) => state.sys_app.flagConsoleLog,
  // tagsView
  // visitedViews: (state) => state.tagsView.visitedViews,
  // cachedViews: (state) => state.tagsView.cachedViews,
  // admin
  // jwt: (state) => state.admin.jwt,
  // adminInfo: (state) => state.admin.adminInfo,
  // roles: (state) => state.admin.roles,
  // purviews: (state) => state.admin.purviews,
  // 所有路由，前台定义好的静态路由和后台读取的动态路由
  accessedRoutesAll: (state) => state.sys_router.accessedRoutesAll,
  // 后台读取的动态路由
  accessedRoutesDynamic: (state) => state.sys_router.accessedRoutesDynamic,
  // 错误日志功能
  // errorLogs: (state) => state.errorLog.logs
}

export default getters
